package request

type AddGoodsReq struct {
	GoodsName string  ` form:"goods_name" json:"goods_name"  binding:"required"` // 商品名称
	Price     float64 ` form:"price" json:"price"  binding:"required"`           // 价格
	FileUrl   string  ` form:"file_url" json:"file_url"  binding:"required"`     // 图片地址
	Collect   uint    ` form:"collect" json:"collect"  binding:"required"`       // 收藏类别 1:收藏 2:取消
	Describe  string  ` form:"describe" json:"describe"  binding:"required"`     // 描述
	Inventory uint    ` form:"inventory" json:"inventory"  binding:"required"`   // 库存
}
type ModifyGoodsReq struct {
	Id        uint    ` form:"id" json:"id"  binding:"required"`
	GoodsName string  ` form:"goods_name" json:"goods_name"  binding:"required"` // 商品名称
	Price     float64 ` form:"price" json:"price"  binding:"required"`           // 价格
	FileUrl   string  ` form:"file_url" json:"file_url"  binding:"required"`     // 图片地址
	Collect   uint    ` form:"collect" json:"collect"  binding:"required"`       // 收藏类别 1:收藏 2:取消
	Describe  string  ` form:"describe" json:"describe"  binding:"required"`     // 描述
	Inventory uint    ` form:"inventory" json:"inventory"  binding:"required"`   // 库存
}
type ListGoodsReq struct {
	Id        uint   ` form:"id" json:"id" `
	GoodsName string ` form:"goods_name" json:"goods_name" ` // 商品名称
}
type PagingGoodsReq struct {
	Page      uint   `json:"page" form:"page"`
	PageSize  uint   `json:"page_size" form:"page_size"`
	GoodsName string ` form:"goods_name" json:"goods_name" ` // 商品名称
}
type CollectGoodsReq struct {
	GoodsName string  ` form:"goods_name" json:"goods_name"  binding:"required"` // 商品名称
	Price     float64 ` form:"price" json:"price"  binding:"required"`           // 价格
	FileUrl   string  ` form:"file_url" json:"file_url"  binding:"required"`     // 图片地址
	Collect   uint    ` form:"collect" json:"collect"  binding:"required"`       // 收藏类别 1:收藏 2:取消
	Describe  string  ` form:"describe" json:"describe"  binding:"required"`     // 描述
	Inventory uint    ` form:"inventory" json:"inventory"  binding:"required"`   // 库存
}
type CancelGoodsReq struct {
	Id      uint ` form:"id" json:"id"  binding:"required"`
	Collect uint ` form:"collect" json:"collect"  binding:"required"` // 收藏类别 1:收藏 2:取消
}
type QueryGoodsReq struct {
	Id        uint   ` form:"id" json:"id" `
	GoodsName string ` form:"goods_name" json:"goods_name" ` // 商品名称
	Collect   uint   ` form:"collect" json:"collect"  `      // 收藏类别 1:收藏 2:取消
}
